package com.coderman.business.converter;

import com.coderman.common.model.business.Emp;
import com.coderman.common.vo.business.EmpVO;
import org.springframework.beans.BeanUtils;

/**
 * 用于返回给前端的实体转换器
 * 员工管理
 * @author 文晓平
 * @version 1.0
 * @date 2023-1-9
 */
public class EmpConverter {


    /**
     * 转vo  ,用于返回给前端的实体
     * @return
     */
    public static EmpVO converterToEmpVO(Emp emp){
        EmpVO empVO = new EmpVO();
        BeanUtils.copyProperties(emp,empVO);
        return empVO;
    }
}
